namespace UnitTestInjector.Exceptions
{
    #region Usings

    using Localizations;
    using System.Globalization;

    #endregion Usings

    public sealed class AreEqualAssertionFailedException : AssertionFailedException
    {
        internal AreEqualAssertionFailedException(object value1, object value2)
            : base(GenerateExceptionMessage(value1, value2))
        {
        }

        private static string GenerateExceptionMessage(object value1, object value2)
        {
            return string.Format(CultureInfo.CurrentCulture,
                Strings.AreEqualAssertionFailedExceptionMessage, value1, value2);
        }
    }
}